<script setup lang="ts">
import { User } from 'my-web-core/models';

defineProps<{
  user: User;
}>();
</script>

<template>
  <div class="container">
    <el-avatar :src="user.avatarUrl" />
    <div :style="{ marginLeft: '5px' }">{{ user.fullName }}</div>
  </div>
</template>

<style scoped>
.container {
  display: flex;
  flex-direction: row;
  align-items: center;
}
</style>
